﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ContractAlterSP_ExtendForm.aspx.vb" Inherits="PubProject.ContractAlterSP_ExtendForm" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o="urn:schemas-microsoft-com:office:office">
	<HEAD>
		<title></title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<link rel="stylesheet" type="text/css" href="/_forms/styles/form.css">
		<script language="javascript" src="/_common/scripts/global.js"></script>
		<script language="javascript" src="/_controls/settings.aspx"></script>
		<script language="javascript" src="/_controls/util/util.js"></script>
		<script language="javascript" src="/_controls/number/number.js"></script>
		<script language="javascript" src="/_controls/datetime/date.js"></script>
		<script language="javascript" src="/MyWorkflow/Workflow.js"></script>
		<script language="javascript" src="/MyWorkflow/Blank.js"></script>
		<script language="javascript" src="/PubProject/js/Public.js"></script>		
		<script language="javascript" src="/CBGL/JS/BudgetCostUse.js"></script>
		<script language="javascript" src="/Qmys/JS/DeptUseInfo.js"></script>
		<script language="javascript" src="/CBGL/HTZX/HtBudget_Setup.js"></script>
		<script language="javascript" src="/CBGL/JS/StockCostUse.js"></script>
		<script language="javascript" src="/CBGL/JS/Public.js"></script>
		<script language="javascript" src="/CBGL/JS/ContractPub.js"></script>
		<script language="javascript" src="/Qmys/JS/Public.js"></script>
		<style> body{font-size:9pt;}
	table{font-size:9pt;}
	P{font-size:9pt;}
		</style>
		<LINK href="/MyWorkflow/css/form.css" type="text/css" rel="stylesheet">
		<script language="javascript">
		    var ObjBudgetCostUse = null;//选择合约规划类
		    var ObjDeptUseInfo = null;  //部门费用类
//			var ObjStockCostUse = null; //选择公司库存类
//			var IfDdhs=null;            //是否单独执行
			var sCfTypeName,sCfSouce,sRefType,sRefGUID,sContractGUID,sApplyAmount;
			var IsLicenseQmys = IsLicenseApp("费用预算");   //是否启用了全面预算

			var sSignDate = ""
			var sHtAmount = ""
			var sProjType = "";
			 
			/*------------------------------------------------------------------*/
			//表单接口函数，需扩展
			//1、Fill	--	表单填充
			//2、GetXML --	表单取数
			//3、Valid	--	表单校验
			/*------------------------------------------------------------------*/
			//屏避右键
			function document.oncontextmenu()
			{
				var s = event.srcElement.tagName;
				// For Selection Ranges, s will be UNDEFINED
				if (s && s != "INPUT" && s != "TEXTAREA" || event.srcElement.disabled || document.selection.createRange().text.length == 0)
				{
					event.returnValue = false;
				}
			}
			
			//发起工作流审批时的校验
			function InitValidate(){
			    if(sRefGUID=="") return false;
			    //OK|AlterClass|AlterType|ApproveState|ContractGUID
				var sFile = "/Cbgl/HTZX/HTAlter_XMLHTTP.aspx?RefGUID=" + escape(sRefGUID);
				var sRtn = openXMLHTTP(sFile,"GetAlterInfo");
			    if(sRtn.split("|")[0]!="OK"){
			        alert("数据读取错误，请与管理员联系！");
			        return false;
			    }
			    var sRtnAr=sRtn.split("|");
			    if(sRtnAr[1] != "变更申报"){
					alert( sRtnAr[1] + "不允许发起审批流程！");
					return false;
			    }
			    
				if (sRtnAr[2]=="附属合同" || sRtnAr[2]=="结算调整")
				{
					alert(sRtnAr[2] + "变更，不允许发起审批流程！");
					return false;
				}
			    if(sRtnAr[3] != "未审核"){
					alert( sRtnAr[3] + "的变更不允许发起审批流程！");
					return false;
			    }
				var sFile = "/Cbgl/HTZX/HTAlter_XMLHTTP.aspx?ContractGUID=" + sRtnAr[4];
				var sRtn = openXMLHTTP(sFile,"CheckHtBalance");
				if(sRtn!="0"){
					alert("当前合同已经存在结算信息，不允许发起审批！");
					return false;
				}
				var sFile = "/Cbgl/HTZX/HTAlter_XMLHTTP.aspx?ContractGUID=" + sRtnAr[4];
				var sRtn = openXMLHTTP(sFile,"GetHtProjType");
				
			    if(sRtn != "无项目"){
			        //获得变更的合约规划使用XML
				    GetBudgetXml(sRefGUID);
				    //校验对应合约规划使用表的生效后的预估变更金额+预估变更差额是否等于当前合同对应合约规划的预估变更金额 
                    var sReturn = VerifyBudget(null,true,false,sRefGUID,true);
                    if(sReturn != "")
                    {
                        return false;
                    }
                }else{
                    if(IsLicenseQmys == 1) ObjDeptUseInfo = new DeptUseInfo(sContractGUID,sRefGUID,"变更","","","","","",sSignDate);
                }                
                
				if(!CheckAlterIfAmountEqual(document.all.txtAlterBudgetList.value,ObjDeptUseInfo,sRtn,sContractGUID,sRefGUID,"变更申报",Form1.TxtAlterType.value,sApplyAmount,false)) return false;

                if(sRtn != "无项目"){
			        var strBudgetList=GetYjBudgetList(Form1.txtAlterBudgetList.value,true);//格式为合约规划GUID1;合约规划GUID2|对应金额1;对应金额2........
                    if(!CheckCostCompel(strBudgetList,"合同变更",sRefGUID,"发起审批")){
                         return false;
                    }
                }								
				
				return true;
			}
			
			//功能：表单填充
			//editableDomainList	当前步骤可编辑域
			//invisibleDomainList   当前步骤不可见域
			//domainXML				域XML
			function Fill(editableDomainList,invisibleDomainList,domainXML)
			{
			
				var xmlDom = new ActiveXObject("Microsoft.XMLDOM"); 
			 	Form1.TxtUseCostInfo.setReadOnly(true, false);
	            Form1.TxtUseCostInfo.style.cursor = "hand"
	            Form1.TxtUseCostInfo.style.textDecorationUnderline = "true"
                
				if (domainXML && domainXML.length>0)	
				{		
					xmlDom.async=false; 
					xmlDom.loadXML(domainXML);
					
					if(xmlDom.parseError.errorCode != 0) 
						xmlDom = null; 
				}
				else
				{
					xmlDom = null;
				}
				Form1.TxtProjectName.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='项目名称']").text;
				Form1.TxtContractName.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='合同名称']").text;				
				Form1.TxtContractCode.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='合同编号']").text;				
				Form1.TxtAlterName.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='变更名称']").text;
				Form1.TxtAlterType.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='变更类型']").text;
				Form1.txtBudgeteer.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='变更经办人']").text;
				Form1.txtAlterReason.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='变更原因']").text;
				Form1.txtApplyAmount.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='变更申报金额']").text;
				Form1.txtAlterAmount.value =  xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='审核金额']").text;
				Form1.txtAlterContent.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='变更内容']").text;
				Form1.txtPaymentRemarks.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='付款说明']").text;
				Form1.TxtUseCostInfo.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='合约规划']").text;
				Form1.TxtDeptUseInfo.value = xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='部门费用']").text;
				
				var objlist = getHTMLDomainField(document);
				
				for(var i=0;i<objlist.length;i++)
				{ 	
					if((invisibleDomainList+",").indexOf(objlist[i].dm_name + ',')>-1)
					{
						//不可见域不显示
						objlist[i].style.display="none";
					}
				
					//不可编辑的disabled,可编辑的enabled
					if((editableDomainList+",").indexOf(objlist[i].dm_name + ',')>-1)
					{
						objlist[i].readOnly =false;
					}
					else
					{
						objlist[i].readOnly =true;
					}
				}
				sRefGUID = xmlDom.selectSingleNode("/BusinessType").attributes.getNamedItem("BusinessGUID").value;
                sApplyAmount=Form1.txtApplyAmount.value;
				//相关附件
				if (sRefGUID != "")
				{
					var sMode="";
				    sMode=requestURL("mode");
				    if(sMode=="3"){
					    document.all["appIfraFJ"].src = "/PubProject/Pub/DocumentUpFile.aspx?FKGUID=" + escape(sRefGUID) + "&UpFileState=LOOK&IsAllowOpenFile=true&Title=" + escape("变更附件") + "&DocType=" + escape("合同变更");
				    }else{
					    document.all["appIfraFJ"].src = "/PubProject/Pub/DocumentUpFile.aspx?FKGUID=" + escape(sRefGUID) + "&UpFileState=EDIT&IsAllowOpenFile=true&Title=" + escape("变更附件") + "&DocType=" + escape("合同变更");
				    }
				}

	            //没有启用成本则隐藏合约规划
	            if(Form1.txtLicenseCbgl.value=="0"){
	                document.all("UseCostInfo").style.display="none";
	            }
                //获得变更的合约规划使用XML
				GetBudgetXml(sRefGUID);
				
				var sFile = "/Cbgl/HTZX/HTAlter_XMLHTTP.aspx?ContractGUID=" + sContractGUID;
				var sProjType = openXMLHTTP(sFile,"GetHtProjType");		
				if(sProjType == "无项目"){
				    document.all("tBudgetInfo").style.display = "none";	
				    if(IsLicenseQmys == 0){
				        document.all("tdDeptInfo").style.display = "none";	
				    }		    
				}else{
				    document.all("tdDeptInfo").style.display = "none";				    
				}
			}
			
			//前端截取URL地址获取mode值
			function requestURL(paras){ 
                var url = location.href; 
                var paraString = url.substring(url.indexOf("?")+1,url.length).split("&"); 
                var paraObj = {} ;
                for (i=0; j=paraString[i]; i++){ 
                    paraObj[j.substring(0,j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=")+1,j.length); 
                } 
                var returnValue = paraObj[paras.toLowerCase()]; 
                if(typeof(returnValue)=="undefined"){ 
                    return ""; 
                }else{ 
                    return returnValue; 
                } 
            } 
			//功能：表单取数
			//参数：取值前的domainxml
			//返回值 取值后的domainxml
			function GetXML(domainXML)
			{
			
				var xmlDom = new ActiveXObject("Microsoft.XMLDOM");
				
				xmlDom.async=false;
				xmlDom.loadXML(domainXML);
						
				if(xmlDom.parseError.errorCode != 0) return "";
				
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='项目名称']").text = Form1.TxtProjectName.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='合同名称']").text = Form1.TxtContractName.value;				
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='合同编号']").text = Form1.TxtContractCode.value;				
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='变更名称']").text = Form1.TxtAlterName.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='变更类型']").text = Form1.TxtAlterType.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='变更经办人']").text = Form1.txtBudgeteer.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='变更原因']").text = Form1.txtAlterReason.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='变更申报金额']").text = Form1.txtApplyAmount.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='审核金额']").text = Form1.txtAlterAmount.value ;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='变更内容']").text = Form1.txtAlterContent.value;				
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='付款说明']").text = Form1.txtPaymentRemarks.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='合约规划']").text = Form1.TxtUseCostInfo.value;
				xmlDom.selectSingleNode("/BusinessType/Item/Domain[@name='部门费用']").text = Form1.TxtDeptUseInfo.value;
				
				return xmlDom.xml;	
			}
			
			//功能：表单校验
			//参数：可编辑域列表
			function Valid(editableDomainList)
			{
				return true;
			}
			
			
			function GetBudgetXml(sRefGUID)
			{
			    var sFile = "/Cbgl/HTZX/HTBalance_XMLHTTP.aspx?sTypeName=alter&RefGUID=" + escape(sRefGUID);
			
				var sRtn = openXMLHTTP(sFile,"GetBalanceBudgetInfo");				
                if ("NO"!=sRtn)
                {
                    //返回  sContractGUID|RefGUID|RefType|CfSouce|CfTypeName
                    var sRtnList = sRtn.split("|")
                   sContractGUID = sRtnList[1];
                   sSignDate = sRtnList[2];
                   sApplyAmount = sRtnList[3];
                   document.all.txtAlterBudgetList.value=sRtnList[0];
                }
                
                if(IsLicenseQmys == 1) ObjDeptUseInfo = new DeptUseInfo(sContractGUID,sRefGUID,"变更","","","","","",sSignDate);
			}
			
			
        function ChgUseCost()
        {
             
            if (document.all.txtAlterBudgetList.value=="")
            {
                return; 	
            }
    	
            if (document.readyState != "complete")
            {
	            alert("当前页面没有加载完，请稍候保存！");
	            event.returnValue = false;
                return;
            }	
        		
        	
            var sMode = "3";
            selectAlterBudget('变更', sRefGUID, sContractGUID);
        	
        }

    //非“预估变更”类变更或结算打开合约规划
    function selectAlterBudget(sBusinessType,sBusinessGUID,sContractGUID)
    {
	    var sTitle = "选择合约规划";
	    var a_mode ="3";
	    var strParamList="";
	    var sFile="/CBGL/Htzx/HtBudget_Setup.aspx";
	    var myObject = new Object();
	    myObject.xml = document.all("txtAlterBudgetList").value;
    	
	    if (sBusinessType==undefined) sBusinessType="";
	    if (sBusinessGUID==undefined) sBusinessGUID="";
	    if (sContractGUID==undefined) sContractGUID="";
	    strParamList = "BusinessType="+escape(sBusinessType);
	    strParamList +="&BusinessGUID="+escape(sBusinessGUID);
	    strParamList +="&ContractGUID="+escape(sContractGUID);
	    strParamList +="&mode="+escape(a_mode);

        sApplyAmount = FormatNumber(sApplyAmount,"#,##0.00");
    	strParamList +="&dftAmount="+ sApplyAmount;
    	strParamList +="&AlterAmount="+escape("申报金额|" + sApplyAmount + "|变更申报");

	    openMyDlg(sTitle, sFile, strParamList, myObject, 790, 570);
    }

	    //显示部门费用
	    function SelectDeptUseInfo(){ 
	        var mode = "3";    	
	        //分摊金额，即合同有效签约金额
	        ObjDeptUseInfo.UpdateDeptUseInfo(sApplyAmount ,mode,false);
	    }
	
//		function openViewLayer(vBudgetList)
//         {
//	        var xmlBudget;
//	        var i;
//	        var sBudgetGUID;

//	        sBudgetGUID="";

//	        if(Form1.txtAlterBudgetList.value=="")
//	        {
//	            return;
//	        }
//	        xmlBudget = new ActiveXObject("Microsoft.XMLDOM");
//	        xmlBudget.async = false;
//	        xmlBudget.loadXML(Form1.txtAlterBudgetList.value);
//	        iRow =xmlBudget.getElementsByTagName("cb_BudgetUse/DataList/Row").length;
//	        for(i=0;i<iRow;i++)
//	        {
//		        node = xmlBudget.getElementsByTagName("cb_BudgetUse/DataList/Row")(i);
//		        sBudgetGUID=sBudgetGUID + ""+node.attributes.getNamedItem("BudgetGUID").text+",";
//	        }	
//	        if(sBudgetGUID!="")
//	        {
//	          sBudgetGUID = sBudgetGUID.substring(0,sBudgetGUID.lastIndexOf(","))
//	          createBg(); 
//              createCon(sBudgetGUID); 
//	        }
//	        else
//	        {
//	           return false; 
//	        }
//            
//         }


         function openViewLayer(vBudgetList)
         {
          
            if (vBudgetList.value ==undefined  || vBudgetList.value=="")  return false;

	        var xmlBudget;
	        var i;
	        var sBudgetGUID;
        	
	        sBudgetGUID="";

	        if(Form1.txtAlterBudgetList.value=="")
	        {
	            return;
	        }
	        xmlBudget = new ActiveXObject("Microsoft.XMLDOM");
	        xmlBudget.async = false;
	        xmlBudget.loadXML(Form1.txtAlterBudgetList.value);
	        iRow =xmlBudget.getElementsByTagName("cb_BudgetUse/DataList/Row").length;
	        for(i=0;i<iRow;i++)
	        {
		        node = xmlBudget.getElementsByTagName("cb_BudgetUse/DataList/Row")(i);		
        		
		        sBudgetGUID=sBudgetGUID + ""+node.attributes.getNamedItem("BudgetGUID").text+",";
	        }	
	        if(sBudgetGUID!="")
	        {
	          sBudgetGUID = sBudgetGUID.substring(0,sBudgetGUID.lastIndexOf(","))
	          document.all("appDemoIframe").src = "/Cbgl/PUB/SelectBudgetPath.aspx?mode=3&BudgetGUID="+sBudgetGUID
	          ShowViewLayer(true);
	        }
	        else
	        {
	           return false; 
	        }
            
         }

          
</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout" id="bodyId">
	
			
      <div id="bgDiv" style="display:none;background-color:white;position:absolute;left:0px;top:0px;height:300px;width:400px;" onmouseout="ShowDeptUseViewLayer(false)">
			<table> <tr> <td> <table> <tr> <td> <iframe id='appDemoIframe' src='' frameborder='no' height='300' width='400' scrolling='auto'></iframe> </td> </tr> </table> </td> </tr> </table>
      </div>	
	
	
		<form id="Form1" method="post" runat="server">
			<asp:textbox id="ApplyUserGUID" runat="server" style="display:none"></asp:textbox>
			<asp:textbox id="ApplyDeptGUID" runat="server" style="display:none"></asp:textbox>
			<asp:textbox id="ResultTypeGUID" runat="server" style="display:none"></asp:textbox>
			<asp:textbox id="WorkResultGUID" runat="server" style="display:none"></asp:textbox>	
			<asp:textbox id="txtAlterBudgetList" style="DISPLAY: none" Runat="server"></asp:textbox>
            <asp:textbox id="txtLicenseCbgl" style="DISPLAY: none" Runat="server"></asp:textbox>
			<TABLE width="100%">
				<TBODY>
					<TR>
						<TD><!-- 表单 -->
							<P align="center" id="pTitle"><FONT style="FONT-SIZE: 16px"><STRONG>合同变更审批表</STRONG></FONT></P>
							<P align="center">
								<TABLE style="TABLE-LAYOUT: fixed; WIDTH: 90%; BORDER-COLLAPSE: collapse" borderColor="#517dbf" cellSpacing="2" cellPadding="3" align="center" bgColor="#ffffff" border="1">
									<colgroup>
										<col width="100">
										<col>
										<col width="100">
										<col>										
									</colgroup>
									<TR height="25">
										<TD>
											项目名称
										</TD>
										<TD colspan="3">
											<INPUT class="txt" id="TxtProjectName" style="WIDTH: 100%; HEIGHT: 100%" maxLength="4000"
												dm_name="项目名称">
										</TD>							
									</TR>
									<TR height="25">
										<TD>
											合同名称
										</TD>
										<TD >
											<INPUT class="txt" id="TxtContractName" style="WIDTH: 100%; HEIGHT: 100%" maxLength="100" dm_name="合同名称"> 
										</TD>
										<TD>
											合同编号
										</TD>
										<TD>
											<INPUT class="txt" id="TxtContractCode" style="WIDTH: 100%; HEIGHT: 100%" maxLength="4000"
												dm_name="合同编号">
										</TD>
									</TR>
									<TR height="25">
										<TD>
											变更名称
										</TD>
										<TD>
											<INPUT class="txt" id="TxtAlterName" style="WIDTH: 100%; HEIGHT: 100%" maxLength="4000"
												dm_name="变更名称">
										</TD>
										<TD>
											变更类型
										</TD>
										<TD >
											<INPUT class="txt" id="TxtAlterType" style="WIDTH: 100%; HEIGHT: 100%" maxLength="100" dm_name="变更类型"> 
										</TD>
									</TR>
									<TR height="25">
										<TD>
											变更经办人
										</TD>
										<TD>
											<INPUT class="txt" id="txtBudgeteer" style="WIDTH: 100%; HEIGHT: 100%" maxLength="4000"
												dm_name="变更经办人">
										</TD>
										<TD>
											变更原因
										</TD>
										<TD >
											<INPUT class="txt" id="txtAlterReason" style="WIDTH: 100%; HEIGHT: 100%" maxLength="100" dm_name="变更原因"> 
										</TD>
									</TR>
									<TR height="25">
										<TD>
											变更申报金额
										</TD>
										<TD>
											<INPUT class="num" id="txtApplyAmount" style="WIDTH: 100%; HEIGHT: 100%" maxLength="20" dm_name="变更申报金额" acc="2" grp="true">
										</TD>
										<TD>
											<%--审核金额--%>
										</TD>
										<TD >
											<INPUT class="num" id="txtAlterAmount" style="WIDTH: 100%; HEIGHT: 100%; display:none;" maxLength="20" dm_name="审核金额" acc="2" grp="true"> 
										</TD>
									</TR>
									<TR height="200">
										<TD align=center>
											变更内容
										</TD>
										<TD colspan=3>
                                            <textarea  style="WIDTH: 100%; HEIGHT:100%" id="txtAlterContent" cols="140" rows="15"  dm_name="变更内容"></textarea>
										</TD>										
									</TR>
									<TR height="200">
										<TD align=center>
											付款说明
										</TD>
										<TD colspan=3>
                                            <textarea  style="WIDTH: 100%; HEIGHT:100%" id="txtPaymentRemarks" cols="140" rows="15"  dm_name="付款说明"></textarea>
										</TD>										
									</TR>
									<TR id="UseCostInfo">
										<TD colspan=4>
											<table cellpadding="0" cellspacing="0" width="100%" style="TABLE-LAYOUT:fixed;" id="tBudgetInfo">
                                                <col width=70/><col width=50 /><col /><col width="25" align="right"/><col width=70/>
                                                <tr>
                                                    <td align=right></td> 
                                                    <td>合约规划</td>
                                                    <td><input type="text" class="txt" readOnly="0" name="TxtUseCostInfo" value="" maxlength="2000" onmouseover="openViewLayer(this)"></td>
                                                    <td align="right"><img style="cursor:hand" src="/_imgs/btn_off_lookup.gif" onclick="ChgUseCost()"></td>
                                                    <td></td>
                                                </tr>
                                                <tr height="5"><td align=right colspan=5></td> </tr>
                                            </table>
											<table cellpadding="0" cellspacing="0" width="100%" style="TABLE-LAYOUT:fixed;" id="tdDeptInfo">
                                                <col width=70/><col width=50 /><col /><col width="25" align="right"/><col width=70/>
                                                <tr>
                                                    <td align=right></td> 
                                                    <td>部门费用</td>
                                                    <td><input type="text" class="txt" readOnly="0" name="TxtDeptUseInfo" value="" maxlength="2000" onmouseover="openDeptViewLayer(this)"></td>
                                                    <td align="right"><img style="cursor:hand" src="/_imgs/btn_off_lookup.gif" onclick="SelectDeptUseInfo()"></td>
                                                    <td></td>
                                                </tr>
                                                <tr height="5"><td align=right colspan=5></td> </tr>
                                            </table>										
                                        </TD>										
									</TR>
								    <TR>
								        <TD COLSPAN="4">
									        <table width="100%" cellspacing="0" cellpadding="3" style="table-layout:fixed;">
										        <TR>
											        <TD class='sec bar'>
												        相关附件
											        </TD>
										        </TR>
										        <TR height="50">
											        <TD>
												        <iframe id="appIfraFJ" src="" width="100%" height="100%" frameborder="0" scrolling="no"></iframe>
											        </TD>
										        </TR>
									        </table>
								        </TD>
							        </TR>								
							</TABLE>
						</P>
					</TD>
				</TR>					
			</TBODY>
		</TABLE>
		</form>
		<xml id="NumberFormatXml">
			<number>
				<val>0</val>
				<format>#,##0.00</format>
			</number>
		</xml>
		<XML ID="NumberFormatXslt">
			<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
				<xsl:output method="text"/>
				<xsl:template match='number'>
					<xsl:value-of select='format-number(val,format)' />
				</xsl:template>
			</xsl:stylesheet>
		</XML>	
	</body>
</HTML>